package routes

import (
	"github.com/gin-gonic/gin"
	"jjqzplucky.site/sz-core/internal/controllers"
)

func RegisterDoctorRoutes(r *gin.Engine) {
	//鉴权控制器
	doctor := controllers.DoctorController{}

	d := r.Group("/doctor")
	{
		d.GET("/getById", doctor.GetDoctorByID)
		d.GET("/page", doctor.GetDoctors)
		d.POST("/add", doctor.CommitDoctor)
		d.POST("/edit", doctor.CommitDoctor)
		d.POST("/delete", doctor.DeleteDoctor)
	}
}
